import { get, post, post_json } from '@/http/axios'
export default {
  namespaced: true,
  state: {
      //用户信息数组
    Userlist:[],
  },
  mutations: {
    SET_USER(state,payload){
        state.Userlist=payload
    }
  },
  actions: {
    async getAlluser({commit},payload){
        let res = await get('/baseUser/pageQuery',payload)
        // console.log(res.data.data.list);
        commit('SET_USER',res.data.data.list)
    }
  }
}